<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php print $head_title ?></title>
    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?>
  <script src="<?php print $path; ?>/js/jquery.tools.min.js"></script>
   <script src="<?php print $path; ?>/js/jquery.nivo.slider.pack.js"></script>
        <script src="<?php print $path; ?>/js/delay.js"></script>
      <link rel="stylesheet" type="text/css" href="<?php print $path; ?>/css/tabs.css" />
</head>
<body>
<div id="background">
  <div id="main-container">
    <div id="header">
       <div id="menu-top">
                        <ul id="navlist">
                            <li id="active"><a href="/" id="current">HOME</a></li>
                            <li><a href="/aboutus">ABOUT US</a></li>
                            <li><a href="/contactus">CONTACT US</a></li>
                        </ul>
                    </div>
					<div id="mast-head">
					<a href="/" class="logo"></a>
                    <div id="social-network-icons">
                                <a href="#"><img src="<?php print $path; ?>/images/facebook.png"></a>
                                <a href="#"><img src="<?php print $path; ?>/images/twitter.png"></a>
                    </div>
                        <div id="search-box">
                            <form action="<?php print base_path(); ?>search/luceneapi_node/" method="get">
                                <input name="keys" type="text" class="search-textbox" value="<?php echo $_REQUEST['keys'] ?>">
                                <input name="submit" type="submit" class="search-button">
                            </form>
                        </div>
                    </div>
					<div id="clear-both"></div>           
        <!-- sticker wrapper -->
                    <div id="nav-area">
                        <div class="sticker_wrapper">
                            <div class="navBtn"><a href="/" class="home"></a> </div>
                        </div>
                        <div class="sticker_wrapper">
                            <div onmouseover="openTab(this, 'navButtonSports');" onmouseout="closeTab(this);">
                                <ul>
                                    <li>
                                        <div class="navBtn navButtonSports"><a class="buy"></a></div>
                                        <div class="sticker_menu" style="display: none; ">
                                            <div class="sticker_menu_inner">
                                                <div class="m-head"><a href="/buy" title="">Shop All Cars</a></div>

                                               <?php foreach($cars as $key => $value) : ?>

                                                   <?php if (($key % 2) == 0) : ?>
                                                       <?php if($key == 0) : ?> <div class="dd_column_f di-right-1">
                                                       <?php else : ?> <div class="dd_column di-right-1">
                                                       <?php endif; ?>
                                                            <span class="m-title"><?php print $value['parent']; ?></span>
                                                            <?php foreach ($value['children'] as $children) : ?>
                                                                    <div class="m-item"><a href="/search/luceneapi_node/?keys=<?php print $children ?>" title="<?php print $children ?>"><?php print $children ?></a></div>
                                                            <?php endforeach; ?>

                                                    <?php else : ?>
                                                        <hr>

                                                            <span class="m-title"><?php print $value['parent']; ?></span>
                                                            <?php foreach ($value['children'] as $children) : ?>
                                                                    <div class="m-item"><a href="/search/luceneapi_node/?keys=<?php print $children ?>" title="<?php print $children ?>"><?php print $children ?></a></div>
                                                            <?php endforeach; ?>
                                                        </div>
                                                    <?php endif; ?>


                                                <?php endforeach; ?>



                                                        </div>
                                                        <div class="dd-end-column">
                                                            <div class="dd-right dd-right-1">&nbsp;</div>
                                                        </div>
                                                        <div class="dd-bottom-left">&nbsp;</div>
                                                        <div class="dd-bottom">&nbsp;</div>
                                                        <div class="dd-bottom-right">&nbsp;</div>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="sticker_wrapper">
                                        <div class="navBtn"><a href="/" class="trade-in"></a> </div>
                                    </div>
                                    <div class="sticker_wrapper">
                                        <div class="navBtn"><a href="/" class="financing"></a> </div>
                                    </div>
                                    <div class="sticker_wrapper">
                                        <div class="navBtn"><a href="/" class="services"></a> </div>
                                    </div>
                                </div>
                                <!-- end of sticker wrapper -->


    </div>
    <div id="clear-both"></div>
    <!-- content -->
    <div id="content">
      <div id="breadcrumbs"><!--breadcrumbs area <img src="<?php print $path; ?>/images/red_arrow.png">--></div>
<?php //if ($left): ?>
        <div id="sidebar-left" class="sidebar">
      <div id="content-narrow-search">
<div id="narrow-search">
<img src="<?php print $path; ?>/images/narrow_result_header.png" />
<div id="narrow-search-content">
     <?php print $left ?>
   </div>
<img src="<?php print $path; ?>/images/narrow_result_footer.png" />
</div>
	  </div>
        </div>
      <?php //endif; ?>
      <div id="content-search-results">
          
	  <div id="search-results">
	    <img src="<?php print $path; ?>/images/search_results_header.png">
	  <div id="search-results-content">
            <?php if(!$left) : ?>
              <h1>No search result. </h1>
            <?php endif; ?>
            <?php print $content ?>
          </div>
	  <img src="<?php print $path; ?>/images/search_results_footer.png">
	  </div>
	  </div>
    </div>

      <div id="clear-both"></div>


      <div id="footer">
      <div id="footer-top-bottom">
          <div id="footer-menu"> <a href="#">HOME</a> &nbsp;| &nbsp;<a href="#">BUY</a>&nbsp; | &nbsp;<a href="#">TRADE-IN</a>&nbsp; | &nbsp;<a href="#">FINANCING</a>&nbsp; | &nbsp;<a href="#">SERVICES</a>&nbsp; | &nbsp;<a href="#">ABOUT US</a>&nbsp; | &nbsp;<a href="#">CONTACT US</a>&nbsp; | &nbsp;<a href="#">ARTICLES</a> </div>
        </div>
      <div id="footer-bottom-bottom">
	  <div class="text">&copy; 2011 AllCars.ph  All Rights Reserved</div>
	  </div>
    </div>
  </div>
</div>

</body>
</html>
